import request from "@/utils/request";

/**
 * 获取销售报表概况
 * @param params
 * @returns
 */
export function getordersReport(data) {
  return request({
    url: '/management/sale.sale_orders/getReport',
    method: 'post',
    data
  })
}

/**
 * 获取销售报表列表
 * @param params
 * @returns
 */
export function getordersReportList(data) {
  return request({
    url: '/management/sale.sale_orders/getReportList',
    method: 'post',
    data
  })
}

/**
 * 导出销售报表
 * @param params
 * @returns
 */
export function exportordersReport(data) {
  return request({
    url: '/management/sale.sale_orders/exportReport',
    method: 'post',
    data
  })
}

/**
 * 库存报表
 * @param params
 * @returns
 */
export function getstockreportList(data) {
  return request({
    url: '/management/machine.machine_channel_stock_report/getList',
    method: 'post',
    data
  })
}

/**
 * 导出库存报表（按商品）
 * @param params
 * @returns
 */
export function exportstockBySku(data) {
  return request({
    url: '/management/machine.machine_channel_stock_report/exportBySku',
    method: 'post',
    data
  })
}

/**
 * 导出库存报表（按设备）
 * @param params
 * @returns
 */
export function exportstockByMachine(data) {
  return request({
    url: '/management/machine.machine_channel_stock_report/exportByMachine',
    method: 'post',
    data
  })
}

/**
 * 获取库存盘点总览
 * @param params
 * @returns
 */
export function getstockcountList(data) {
  return request({
    url: '/management/machine.machine_check_stock_count/getList',
    method: 'post',
    data
  })
}
/**
 * 导出库存盘点总览
 * @param params
 * @returns
 */
export function exportCheckStockCount(data) {
  return request({
    url: '/management/machine.machine_check_stock_count/exportCheckStockCount',
    method: 'post',
    data
  })
}

/**
 * 获取库存盘点详情
 * @param params
 * @returns
 */
export function getstockList(data) {
  return request({
    url: '/management/machine.machine_check_stock/getList',
    method: 'post',
    data
  })
}

/**
 * 导出库存盘点详情
 * @param params
 * @returns
 */
export function checkexport(data) {
  return request({
    url: '/management/machine.machine_check_stock/export',
    method: 'post',
    data
  })
}

/**
 * 互动报表
 * @param params
 * @returns
 */
export function gethitList(data) {
  return request({
    url: '/management/goods.goods_hit/getList',
    method: 'post',
    data
  })
}

/**
 * 导出互动报表（按商品）
 * @param params
 * @returns
 */
export function exporthitBySku(data) {
  return request({
    url: '/management/goods.goods_hit/exportBySku',
    method: 'post',
    data
  })
}

/**
 * 导出互动报表（按设备）
 * @param params
 * @returns
 */
export function exportByMachine(data) {
  return request({
    url: '/management/goods.goods_hit/exportByMachine',
    method: 'post',
    data
  })
}

/**
 * 设备点击记录
 * @param params
 * @returns
 */
export function getmacHitList(data) {
  return request({
    url: '/management/goods.goods_hit/getHitList',
    method: 'post',
    data
  })
}

/**
 * 查询设备货道补货列表
 * @param params
 * @returns
 */
export function getreplenishmentList(data) {
  return request({
    url: '/management/machine.machine_channel_replenishment/getList',
    method: 'post',
    data
  })
}
/**
 * 导出设备货道补货
 * @param params
 * @returns
 */
export function replenishmentexport(data) {
  return request({
    url: '/management/machine.machine_channel_replenishment/export',
    method: 'post',
    data
  })
}




